<?php
/**
 * 跃飞科技版权所有 @2017
 * User: 钟贵廷
 * Date: 2017/5/19
 * Time: 13:43
 */
namespace app\admin\controller;

class User extends Admin
{
    private $openId;
    /**
     * 获取用户列表
     */
    public function get()
    {
        $this->openId = '';
        $url = "https://api.weixin.qq.com/cgi-bin/user/get?access_token={$this->get_access_token()}&next_openid={$this->openId}";
        $res = $this->https_request($url);
        $arr = $res['data']['openid'];
//        if($res['total'] == 10000)
//        {
//            $this->openId = $res['next_openid'];
//            $this->get();
//        }

        p($arr);
    }

    
}